using Microsoft.AspNetCore.Mvc;

namespace ChildService.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    public class ChildController : ControllerBase
    {

        private readonly ILogger<ChildController> _logger;

        public ChildController(ILogger<ChildController> logger)
        {
            _logger = logger;
        }

        [HttpGet]
        public async Task<ActionResult<string>> GetNow()
        {
            return await Task.FromResult(DateTime.Now.ToString());
        }
    }
}
